#include <stdio.h>
#include "fsl_wdog_driver.h"
#include "fsl_gpio_driver.h"
#include "board.h"
| uint32_t is_key_pressed |
( |
| ) |
|
Run a simple application which enables watchdog, then continuously refreshes the watchdog to prevent CPU reset Upon SW1 button push, the watchdog will expire after approximately 2 seconds and issue reset To debug, use the OpenSDA debugger connection to allow recovery after watchdog reset, this way the debug connection can be resumed after reset. Recovery not possible when debugging with JLink and powering through OpenSDA.
| void print_reset_reason |
( |
| ) |
|
print chip reset reson to the terminal
| void time_delay |
( |
uint32_t |
t | ) |
|
used to simulate the program's execution
- Parameters
-
| [in] | t | the time that would be delayed |
| void toggle_active_led |
( |
| ) |
|
| void wdog_irq_handler |
( |
void |
| ) |
|